<me:UISHWB04 x:Class="WPFExcelReport.TSHWB04"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL" 
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls" 
                     xmlns:SD="clr-namespace:WPFExcelReport;assembly=TSDDAT" 
                    xmlns:WS="clr-namespace:WPFExcelReport;assembly=TWASTAMM" 
                    xmlns:WF="clr-namespace:WPFExcelReport;assembly=TWAFARBEN"  
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                  x:Name="TV"
                    Loaded="Window_Loaded"
     >
    <me:UISHWB04.Resources>
        <CollectionViewSource  x:Key="vwMaster"/>       <CollectionViewSource  x:Key="vwDetail"/>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:Divideby100  x:Key="d100"/> 
        <ucd:Divideby1000  x:Key="d1000"/>  
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>  
    </me:UISHWB04.Resources>
    <StackPanel>
        <WrapPanel>
            <WrapPanel>
            <Button Grid.Column="1" Height="20"  Width="24" Margin="0,0,0,0"  Click="NewCommand">
                <Button.Background>
                    <ImageBrush ImageSource="/ImagePackage;component/Images/Refresh.png" />

                </Button.Background>
            </Button>
            <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=布卷数:}}"/>
            <ex:NumericBox Grid.Column="1"  Text="{Binding ROLLS, ElementName=TV}" Width="40"/>

            <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=长度:}}"/>
                <ex:NumericBox Grid.Column="1"  DecimalPlaces="1" 
                                            Text="{Binding RLG, ElementName=TV}"  
                                          KeyUp="RLG_KeyUp"
                                           Width="60"/>
                <TextBlock   Grid.Column="2" Text="{Binding Source={Localization:Translate Word=M}}"/> 
            
            <Button Grid.Column="1" Height="20"  Width="24" Margin="0,0,0,0"  Click="NewCommand">
                <Button.Background>
                    <ImageBrush ImageSource="/ImagePackage;component/Images/button_ok.png" />

                </Button.Background>
            </Button>
        </WrapPanel>
        <WrapPanel>
            <Grid Margin="10,0,0,0" VerticalAlignment="Top"  >
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                        <ColumnDefinition Width="Auto"></ColumnDefinition> 
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                    </Grid.ColumnDefinitions>
                    <TextBlock Text="{Binding Source={Localization:Translate Word=卡号}}"/>
                    <TextBlock Grid.Column="1" Text="{Binding WBRWKRS}" Width="24"></TextBlock>
                    <TextBlock Grid.Column="2" Text="{Binding WBRWLFD}" Width="80"></TextBlock>
                </Grid> 
                <Grid Margin="10,0,0,0" VerticalAlignment="Top">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                    </Grid.ColumnDefinitions>
                    <TextBlock Grid.Column="0" Text="{Binding Source={Localization:Translate Word=匹数}}"   FontSize="18"></TextBlock>
                    <TextBlock Grid.Column="1" Text="{Binding WBSTK,Source={StaticResource vwMaster}}" FontSize="18"  Width="30" ></TextBlock>
                </Grid>
                <Grid Margin="10,0,0,0" VerticalAlignment="Top">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                    </Grid.ColumnDefinitions>
                    <TextBlock Grid.Column="0" FontSize="18" Text="{Binding Source={Localization:Translate Word=长度}}" ></TextBlock>
                    <TextBlock Grid.Column="1" Text="{Binding WBMTR,Source={StaticResource vwMaster},Converter={StaticResource d100}}" FontSize="18" Width="80" ></TextBlock>
                </Grid> 
            </WrapPanel>
        </WrapPanel>
    </StackPanel>
</me:UISHWB04>
